@layout("/backend/common/_container.html"){
<div class="form-horizontal dhcc-form">
    <form id="gen_form"  name="gen_form" method="post" action="${backendPath}/gen/gen">
        <div class="form-group">
            <label class="col-sm-2 control-label">数据表名称</label>
            <div class="col-sm-9">
                <input type="text" class="textbox" name="tableNames" id="tableName" value="${tableNames}" readonly> 
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">模块名称</label>
            <div class="col-sm-9">
                <input type="text" class="textbox" name="modularName" id="modularName"> <span class="help-block m-b-none">例如:test。生成包名为com.dhcc.test</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">自定义包名</label>
            <div class="col-sm-9">
                <input type="text" class="textbox" name="customName" id="customName"> <span class="help-block m-b-none">例如:demo。生成包名为com.dhcc.模块名称.demo</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">作者</label>
            <div class="col-sm-9">
                <input type="text" class="textbox" name="author" id="author"> <span class="help-block m-b-none">开发者</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">表前缀</label>
            <div class="col-sm-9">
                <input type="text" class="textbox" name="tablePrefix" id="tablePrefix"> <span class="help-block m-b-none">类名不会包含表前缀</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">权限控制</label>
            <div class="col-sm-9">
                <input type="radio" id="usePermission1" value="1" name="usePermission" class='hisui-radio'>
                <label for="usePermission1"> 启用 </label>
                <input type="radio" id="usePermission2" value="0" name="usePermission" class='hisui-radio' checked>
                <label for="usePermission2"> 禁用 </label>
                <span class="help-block m-b-none">启用权限控制后请记得在资源管理添加对应资源及配置权限</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">操作记录</label>
            <div class="col-sm-9">
                <input type="radio" id="useLog1" value="1" name="useLog" class='hisui-radio' checked>
                <label for="useLog1"> 启用 </label>
                <input type="radio" id="useLog2" value="0" name="useLog" class='hisui-radio'>
                <label for="useLog2"> 禁用 </label>
            </div>
        </div>
	    <div class="row btn-group-m-t">
	        <div class="col-sm-12">
                <button class="btn btn-primary" onclick="Gen.generate()">代码生成</button>
	        </div>
	    </div>
    </form>
</div>
<script src="${ctxPath}/static/backend/gen/gen_info.js"></script>
<script type="text/javascript">
setTimeout(function(){
	$HUI.radio("#usePermission2").setValue(true);
	$HUI.radio("#useLog1").setValue(true);
},300)
</script>
@}
